package com.nd.qa.shareplate.service.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nd.qa.shareplate.IDao.ManageDocMapper;
import com.nd.qa.shareplate.model.ShareDocument;
import com.nd.qa.shareplate.service.ManageDocService;

@Service("com.nd.qa.shareplate.service.ManageDocService")
public class ManageDocServiceImpl implements ManageDocService {

	@Autowired
	private ManageDocMapper manageDocMapper;

	@Override
	public void insertDocument(ShareDocument doc) throws Exception {
		manageDocMapper.insertDocument(doc);
	}

	@Override
	public List<ShareDocument> queryTotalDocument(ShareDocument doc) {
		return manageDocMapper.queryTotalDocument(doc);
	}

	@Override
	public List<ShareDocument> queryDocById(HashMap<String, Object> paramMap) {
		return manageDocMapper.queryDocById(paramMap);
	}

	@Override
	public void deleteDocById(ShareDocument doc) throws Exception {
		manageDocMapper.deleteDocById(doc);
	}

}
